package com.dwms.feign;

import com.dwms.entity.Result;
import com.dwms.entity.api.request.ApiOrderRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: OrderController
 * @Description: Order
 * @Create 2025-09-10 17:29:49
 * @Author WH
 * @Since 1.0.0
**/

@FeignClient(name = "oms-server", path = "/order")
public interface OrderFeignClient {

    /**
     * 处理订单
     * @param apiOrderRequest
     * @return
     */
    @PostMapping("/handelOrder")
    Result handelOrder(@RequestBody ApiOrderRequest apiOrderRequest);

}
